<?php if (isset($is_common_home) && $is_common_home): ?>
<div class="container module-bottom"><div class="row"><div class="col-sm-12">
<?php endif ?>
<?php if ($title): ?>
<p class="module-title"><span><?php echo $title; ?></span></p>
<?php endif ?>
<div class="module-image-text">
  <?php foreach ($items as $item) { ?>
  <div class="row">
    <div class="col-sm-6 p-0 <?php echo $item['direction'] == 'img-left' ? 'pull-left' : 'pull-right' ?>">
      <?php if ($item['href']): ?>
      <a href="<?php echo $item['href']; ?>"><img src="<?php echo $item['image']; ?>" class="img-responsive"></a>
      <?php else: ?>
      <img src="<?php echo $item['image']; ?>" class="img-responsive">
      <?php endif ?>
    </div>
    <div class="col-sm-6 p-0">
      <div class="text-content">
        <div class="title"><?php echo $item['title']; ?></div>
        <div class="text"><?php echo $item['text']; ?></div>
        <a href="<?php echo $item['href']; ?>" class="btn"><?php echo $button_more; ?></a>
      </div>
    </div>
  </div>
  <?php } ?>
</div>
<?php if (isset($is_common_home) && $is_common_home): ?>
</div></div></div>
<?php endif ?>
